<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/01_获取页面元素.js"></script>
</head>
<body>
    <div id="div1">
        <h3>更改属性</h3>
        <a id="link" href="www.taobao.com">淘宝网</a>
        <button onclick="taobaoTojd()">去京东</button>
    </div>

    <div>
        <a>淘宝</a>
        <input type="button" id="btn1" value="设置属性">
        <input type="button" id="btn2" value="移除属性">
    </div>
</body>
</html>